(abbreviate-file-name): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Sat, 6 Jan 2007 21:50:14 +0000 (21:50 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 6 Jan 2007 21:50:14 +0000 (21:50 +0000)
lisp/files.el

index 7a9c1b4b9da1827d48b8de1cd3d47d2969eb53fa..80df0d898d36f10a7f9fb69ba5f4e25144e31283 100644 (file)
@@ -1289,8 +1289,9 @@ Choose the buffer's name using `generate-new-buffer-name'."
 
 (defun abbreviate-file-name (filename)
   "Return a version of FILENAME shortened using `directory-abbrev-alist'.
-This also substitutes \"~\" for the user's home directory and
-removes automounter prefixes (see the variable `automount-dir-prefix')."
+This also substitutes \"~\" for the user's home directory (unless the
+home directory is a root directory) and removes automounter prefixes
+\(see the variable `automount-dir-prefix')."
   ;; Get rid of the prefixes added by the automounter.
   (save-match-data
     (if (and automount-dir-prefix